﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="top.ascx.cs" Inherits="top" %>

<style type="text/css">
        .imgBox {
            /*border-top: 2px solid cadetblue;*/
            width: 100%;
            height: 350px;
            margin: 0 auto;
        }

        .imgBox img {
            width: 100%;
            height: 250px;
            margin: 0 auto;
            /*padding-top: 30px;*/
        }

    .img1 {
        display: block;
    }

    .img2 {
        display: none;
    }

    .img3 {
        display: none;
    }
</style>
<table id="Table1" width="900" height="206" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td style="height: 100%; width: 100%;">
            <div class="imgBox">
                <img class="img-slide img1" alt="1" src="./images/tp1.jpeg" style="width: 100%; height: 100%;" />
                <img class="img-slide img2" alt="2" src="./images/ccc1.jpg" style="width: 100%; height: 100%;" />
                <img class="img-slide img3" alt="3" src="./images/bgc.jpg" style="width: 100%; height: 100%;" />
                <img class="img-slide img3" alt="3" src="./images/ccc2.jpg" style="width: 100%; height: 100%;" />
                <img class="img-slide img3" alt="3" src="./images/ccc3.jpg" style="width: 100%; height: 100%;" />
            </div>
        </td>


    </tr>
    <tr>
        <td height="32" style="background-color: blanchedalmond;" align="center">
            <strong>
                <a href="default.aspx"><font color="black">首页</font></a> |&nbsp; 
				<a href="news.aspx?lb=1"><font color="black">业务介绍</font></a> |&nbsp; 
				<a href="wangdianxinxilist.aspx"><font color="black">网点查询</font></a> |&nbsp; 
				<a href="kuaidixinxilist.aspx"><font color="black">快递追踪</font></a> |&nbsp; 
				<a href="userreg.aspx"><font color="black">用户注册</font></a>&nbsp;|&nbsp; 
				<a href="lyb.aspx"><font color="black">留言板</font></a>&nbsp;|&nbsp; 
				<a href="login.aspx"><font color="black">后台管理</font></a>
            </strong>
        </td>
    </tr>
</table>
<script type="text/javascript">
    var index = 0;
    //效果
    function ChangeImg() {
        index++;
        var a = document.getElementsByClassName("img-slide");
        if (index >= a.length) index = 0;
        for (var i = 0; i < a.length; i++) {
            a[i].style.display = 'none';
        }
        a[index].style.display = 'block';
    }
    //设置定时器，每隔两秒切换一张图片
    setInterval(ChangeImg, 3000);
</script>
